emellor@leeni.uk.xensource.com [Wed, 19 Oct 2005 12:34:44 +0000 (13:34 +0100)]
Some trivial changes for the tool scripts:
- make xen-hotplug-common.sh (un)set locales.
- use xen-hotplug-common.sh in vif-bridge.
From Gerd Knorr <kraxel@suse.de>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 19 Oct 2005 12:33:22 +0000 (13:33 +0100)]
Added sedf_get functionality to XendClient interface. From David Isaac
Wolinsky <davidiw@ufl.edu>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 19 Oct 2005 10:53:00 +0000 (11:53 +0100)]
Remove unused parameter from addControllerClass. This became unused when the
BE_DOMAIN flags were removed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 19 Oct 2005 10:51:25 +0000 (11:51 +0100)]
Remove unused shadow_control functionality from the Python layer. This is
handled in xc_linux_save, and no-one in the Python layer uses this functionality
directly.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Wed, 19 Oct 2005 10:47:51 +0000 (11:47 +0100)]
Take advantage of the new UUID (handle) stored for us in Xen to improve the
recreation semantics.
Remove the unpause at the end of xc_linux_restore, and move it to
XendDomainInfo. This is necessary because xenstored now allocates the domain
path when the domain is introduced, which means that the new domain cannot
start running until that introduce is performed and the new devices
configured.
Give restore a separate completion phase in which domain details are stored.
This is required because the domain path is no longer available until after
the introduceDomain call.
TODO: Split the domain introduction into two so that the domain path is
available earlier. At the moment, the domain <-> store channel details are
passed in to xenstored when the domain is introduced, but in the case of
restore it is necessary to wait until the restore is completed before the
channel MFN is available.
Change the interface between XendDomainInfo and XendCheckpoint/image to not
have hideous callbacks through setConsoleRef and setStoreRef. Instead,
image.createImage explicitly returns those values, and XendCheckpoint passes
them through to completeRestore.
Move the purging of the domain path corresponding to a new domain from Xend
to xenstored, since xenstored is now in charge of this path. With the domain
path creation moved to xenstored, Xend cannot remove the path, because watches
may have fired on it already.
Fix the printf statement in xenstored in verbose mode that details the
messages being written. This statement was printing the buffer using %s, but
this buffer has an explicit length field, so we were seeing garbage after the
correct details.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 19 Oct 2005 06:43:03 +0000 (07:43 +0100)]
Rename 2.6.12.5 patch so it actually gets applied. Fail
the build if 'patch' is missing.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 18:28:16 +0000 (19:28 +0100)]
Fix -xen builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 18:07:03 +0000 (19:07 +0100)]
Domain0 doesn't do initial VCPU hotplug via xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 18:02:14 +0000 (19:02 +0100)]
Remove 'n_vcpu' field from start_info structure. Domain0
simply creates a CPU on every physical CPU. Other domains
read the initial VCPU configuration from xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 18 Oct 2005 17:07:11 +0000 (18:07 +0100)]
Protect __del__ from failure inside __init__ by setting inTransaction before
trying to create a transaction instance.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 18 Oct 2005 17:01:14 +0000 (18:01 +0100)]
Added uuid unit test.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Tue, 18 Oct 2005 16:45:50 +0000 (17:45 +0100)]
Fix call to getVCpuCount for dom0.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 16:40:31 +0000 (17:40 +0100)]
Merge i386/x86_64 smpboot.c into a simplified common Xen version.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 14:40:29 +0000 (15:40 +0100)]
alloc_netif() must return a ERR_PTR() on error, not NULL.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 10:09:36 +0000 (11:09 +0100)]
Clean up some VMX IO handler code:
1. Clean up some definitions.
2. change d to v, if it means vcpu.
3. remove some tailing spaces.
TODO:
split current VMX IO handler list to 2, one for port IO,
and the other for MMIO.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 10:07:55 +0000 (11:07 +0100)]
Fix x86_64 smp boot:
The local_setup_timer prototype was bad. The call from start
secondary() to it was calling with out the CPU parameter. Eventually the
CPU parameter received by the local_setup_timer is bogus (big negative
number). With such a big cpu number the per_cpu macro was trying to
access totally wrong memory location (per cpu data offset for big -ve no
cpu) causing the unhandled page fault. Because the dom0 was panicking
the error information on the serial console was also not going through,
giving just clueless hang. With hyper call based debug statement I
could find out what was going wrong in the dom0.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 10:04:48 +0000 (11:04 +0100)]
Allow interdomain channels to bind DOMID_SELF to DOMID_SELF.
Signed-off-by: Steve King <steven.r.king@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 09:53:30 +0000 (10:53 +0100)]
There are only six fields in vcpuinfo.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 09:45:29 +0000 (10:45 +0100)]
In the shadow mode, thanks to recent patches, the shadow
reference counts (both general counts and type counts)
are now correct in all of my testing so far. As a result,
we should remove the shadow_tainted_refcnt flag from
the domain structure. Leaving this flag in place would
create confusion for programmers and would also prevent
future debugging of problems in handling general and type
reference counts in the shadow mode. In addition, the
patch also (1) drops the requirement that shadow_mode_disable()
should only be called in the domain destruction sequence
(even though it is only used that way so far), and
(2) strictly assert that the type reference count must
be 0 when we free a page from the dom heap.
Signed-off-by: Khoa Huynh <khoa@us.ibm.com>
cl349@firebug.cl.cam.ac.uk [Tue, 18 Oct 2005 01:08:26 +0000 (02:08 +0100)]
Fix transaction EAGAIN handling in xenstore client programs.
Redirect all output to a buffer and only print the buffer once the
transaction succeeds, discarding output from previous attempts.
In particular, fixes failures when the (block) backend driver would
not configure because reads from the hotplug script did get double
output when a transaction had to be redone.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
emellor@leeni.uk.xensource.com [Mon, 17 Oct 2005 19:34:10 +0000 (20:34 +0100)]
Put back the arg_check calls removed recently -- they aren't as useless as I
thought they were.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 17 Oct 2005 15:33:27 +0000 (16:33 +0100)]
More removal of BE_DOMAIN flags.
emellor@leeni.uk.xensource.com [Mon, 17 Oct 2005 15:23:26 +0000 (16:23 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Mon, 17 Oct 2005 15:22:05 +0000 (16:22 +0100)]
Have xenstored initialise its connections, meaning that xend can be out of
that loop completely -- the xc_init_store, initDomainStore calls can all go.
Have xenstored understand where the local domain information goes. Xend no
longer has to generate a path and pass it to xenstored through
xs_introduce_domain -- we just allow xenstored to generate the path, and then
call GetDomainPath later. There is still some work required to tidy this up.
Change the uuid module to generate uuids as lists of bytes, not in the
stringified form. Added a unit test for that module.
Change the semantics of Xend restart, relying on these changes to the
xenstored semantics and earlier changes to add an opaque handle to the
hypervisor's domain-specific data block. The semantics are now clearer, as
Xend can validate whether the details in the store match the current live
domain.
Added a usage statement to xenstored.
Some of this code is by Steven Hand.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 17 Oct 2005 14:54:28 +0000 (15:54 +0100)]
Remove useless SIF_XXX_BE_DOMAIN driver flags.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 17 Oct 2005 14:15:17 +0000 (15:15 +0100)]
Make the event-channel pending and mask arrays consist of
longs. Thi sensures appropriate alignment for architectures
that require it, and also allows us to naturally support up
to 4096 event channels per 64-bit guest.
Moved 'n_vcpu' field from shared_info to start_info. Really it
ought to disappear altogether as the info can be derived from
xenstore.
Fix a weird bug in XendDomainInfo where 'vcpus' information for
a domain defaults to floating point value 1.0 rather than integer
1. This looks like a Python bug to me, but in any case it is
'fixed' by explicitly converting the default value to an integer.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 17 Oct 2005 13:12:20 +0000 (14:12 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Mon, 17 Oct 2005 13:07:47 +0000 (14:07 +0100)]
Replace xm vcpu-enable and xm vcpu-disable with one command, xm set-vcpus,
which sets the number of active CPUs. Xend then toggles the VCPUs to ensure a
contiguous group of them are enabled.
Added a server command to get VCPU information, and use this info to fix
xm vcpu-list. That xm command now has extra information, too. CPU == -1 is no
longer used as an indicator for a VCPU that is disabled -- a separate state
field is available, and the CPU is set merely to '-'. Individual CPU time is
now available.
Deprecated xm list -v. -v is conventionally used for --verbose, so using it
to list vcpus is confusing. Furthermore, we already have an equivalent command
xm vcpu-list.
Tidied up the horrendous xm list / xm vcpu-list code.
Removed the vcpus field from the dict returned by xc_domain_getinfo, and the
vcpu_to_cpu map from the sxpr returned for xm list.
Move the dom0_enforce_vcpus code into XendDomain.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 17 Oct 2005 13:02:36 +0000 (14:02 +0100)]
Force RTC driver to fail to load in domU by preventing it
from binding to IRQ8.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 17 Oct 2005 12:50:28 +0000 (13:50 +0100)]
Added a TRACE log level, for those versions of Python that do not have it, and
moved XendDomainInfo.update's debugging onto that level, as it has become
overly verbose.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 17 Oct 2005 10:36:36 +0000 (11:36 +0100)]
Plumb GETVCPUINFO dom0_op through to Python. Remove
n_vcpu field from GETDOMAININFO: replaced with
nr_online_vcpus and max_vcpu_id (both plumbed through to
Python).
TODO: Remove 'vcpus' entry in getdomaininfo Python
dictionary.
TODO: Don't represent 'cpumap' as a bitmap in Python.
It would be more sensible to represent as a list
of integer CPU numbers.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 16 Oct 2005 16:25:15 +0000 (17:25 +0100)]
Clean up debug tracing in mm and mm audit code.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 16 Oct 2005 11:34:37 +0000 (12:34 +0100)]
Small cleanup in hotplug script.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 16 Oct 2005 10:45:51 +0000 (11:45 +0100)]
Fix local_irq_save() and irqs_disabled() to be preemption-safe.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Oct 2005 16:19:43 +0000 (17:19 +0100)]
Flush writable pagetable state whenever a domain is
synchronously paused (by Xen or by domain0), or when
it shuts down.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Oct 2005 15:26:03 +0000 (16:26 +0100)]
Fix invalidation of shadow LDT on SMP systems.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Oct 2005 15:25:29 +0000 (16:25 +0100)]
Remove bogus error message in libxenctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Oct 2005 15:25:05 +0000 (16:25 +0100)]
Detect failure to create shutdown process and retry twice
per second until it succeeds.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Sat, 15 Oct 2005 11:56:07 +0000 (12:56 +0100)]
Use new -t flag on xenstore-rm to keep the store pruned when devices go away.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Sat, 15 Oct 2005 11:55:03 +0000 (12:55 +0100)]
Fix installation decision to make the DISTDIR and DESTDIR absolute before
comparing them.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Sat, 15 Oct 2005 11:52:38 +0000 (12:52 +0100)]
Added --tidy flag to xenstore-rm that recursively removes any empty directories
left by the primary removal.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Oct 2005 08:32:10 +0000 (09:32 +0100)]
At least for the time being, GETVCPUCONTEXT needs to work
even for uninitialised VCPUs. xc_linux_build() depends on
it (rather stupidly).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Oct 2005 07:52:22 +0000 (08:52 +0100)]
Extend VCPUINFO dom0_op to return status information about
run state of the VCPU. VCPUCONTEXT returns info about
hotplugged VCPUs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Oct 2005 07:33:19 +0000 (08:33 +0100)]
Fix NAT for domU checksum offload.
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 15 Oct 2005 06:43:08 +0000 (07:43 +0100)]
add BT instruction support to VMX MMIO decoder.
Also extends TEST and OR instructions support for 16/32 bit operations,
these are needed for windows.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
iap10@freefall.cl.cam.ac.uk [Fri, 14 Oct 2005 23:20:35 +0000 (00:20 +0100)]
Enable hotplug cpus in -xen x86_32 kernel.
Suggested by Ryan Harper
Signed-off-by: ian@xensource.com
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Oct 2005 21:15:21 +0000 (22:15 +0100)]
machine_specific_memory_setup() makes the following call to setup e820:
add_memory_region(0, PFN_PHYS(max_pfn), E820_RAM);
Since max_pfn is (rightly) an unsigned long, we overflow for the current
definition of PFN_PHYS. Attached is my preferred solution as it will
hopefully avoid similar situations that may come up in the future.
Signed-off-by: srparish@us.ibm.com
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Oct 2005 17:27:25 +0000 (18:27 +0100)]
This should fix time stopped / going slow problems that
various users have been seeing.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Oct 2005 15:01:11 +0000 (16:01 +0100)]
In addition to setting opaque handle during domain
creation, allow it to be changed after creation via
DOM0_SETDOMAINHANDLE operation (and libxc
xc_domain_sethandle, and via Pyhton wrapper fn).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 14 Oct 2005 14:40:48 +0000 (15:40 +0100)]
Store an opaque handle (tools uuid) in the domain structure
within Xen. Refactor GETVCPUCONTEXT into an op of the same
name plus a new op GETVCPUINFO. Move the cpumap and cpu info
arrays from GETDOMAININFO and move into new GETVCPUINFO.
Signed-off-by: Keir Fraser <keir@xensource.com>
iap10@firebug.cl.cam.ac.uk [Fri, 14 Oct 2005 00:42:34 +0000 (01:42 +0100)]
Remove unused x86_64 functions.
Signed-off-by: ian@xensource.com
emellor@leeni.uk.xensource.com [Thu, 13 Oct 2005 22:16:03 +0000 (23:16 +0100)]
Patch for typo causing multiple output in xm list -l, courtesy of Laura Ramirez
<laura.ramirez@hp.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
jrb44@plym.cl.cam.ac.uk [Thu, 13 Oct 2005 19:16:02 +0000 (20:16 +0100)]
Fixed 64 bit Linux build.
Fixes from Ian Pratt. extern declaration of bind_ipi was out of sync with
the definition of the function.
Signed-off-by: James Bulpin <james@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Oct 2005 16:58:01 +0000 (17:58 +0100)]
Because of a bug with reference counting against the target guest page
when searching the list for L1 shadow pages to write protect that page
(at shadow_promote(), which is called by alloc_shadow_page()), the code
was always scanning _all_ the entries in the hash list. The length of
the hash list can be >500 for L1 shadow pages, and for each page we
needed to check all the PTEs in the page.
The patch attached does the following things:
- Correct the reference count (for the target guest page) so that=20
it can exit the loop when all the L1 shadow pages to modify are found.
Even with this, we can search the entire list if the page is at=20
the end.
- Try to avoid the search in the hash list, by having a
back pointer (as a hint) to the shadow page pfn. For most cases,=20
there is a single translation for the guest page in the shadow.
- Cleanups, remove the nested function fix_entry
With those, the kernel build performance, for example, was improved
approximately by 20%, 40% on 32-bit, 64-bit unmodified Linux guests,
respectively. Tested log-dirty mode for plain 32-bit as well.
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
emellor@leeni.uk.xensource.com [Thu, 13 Oct 2005 16:55:15 +0000 (17:55 +0100)]
Revert accidental commit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 13 Oct 2005 16:51:35 +0000 (17:51 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Thu, 13 Oct 2005 16:49:56 +0000 (17:49 +0100)]
Remove the diagnostic/recovery when two domains end up with the same name. It
was working around bugs that have gone, and is now more dangerous than useful
-- deadlock is a possibility with this code now.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Oct 2005 16:08:59 +0000 (17:08 +0100)]
Cleanup CPU hotplug and save/restore. Next step is to
simplify SMP initial boot and then should be easy to merge
i386 and x86/64 smpboot.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Thu, 13 Oct 2005 14:26:44 +0000 (15:26 +0100)]
Merge.
emellor@leeni.uk.xensource.com [Thu, 13 Oct 2005 14:25:42 +0000 (15:25 +0100)]
Fix broken test for zombies.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Oct 2005 14:19:29 +0000 (15:19 +0100)]
Fix multi-cpu save/restore after the max_vcpu patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Oct 2005 10:12:11 +0000 (11:12 +0100)]
Fix client dependency on libxenstore in Makefile.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Oct 2005 07:38:49 +0000 (08:38 +0100)]
NS_PER_TICK must be a s64 quantity. It is compared with
possibly -ve values which we do not want to 'promote' to
big +ve values.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Thu, 13 Oct 2005 07:06:27 +0000 (08:06 +0100)]
Currently, we mark an IO request to STATE_IOREQ_READY state before
calling IO handlers in xen HV, i.e. vmx_portio_intercept or
vmx_mmio_intercept. Actually, STATE_IOREQ_READY means it's ready for
DM handling, only if IO handlers in xen HV won't handle it, it should
be passed to DM. This patch fixes this issue.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Nakajima Jun <nakajima.jun@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 20:10:14 +0000 (21:10 +0100)]
Add memory barriers to console ring accesses. Similar to what
Rusty uses for xenbus messaging.
Signed-off-by: Keir Fraser <keir@xensource.com>
cl349@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 19:58:51 +0000 (20:58 +0100)]
Disable watch callbacks only during driver registration instead of all probes.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 17:43:26 +0000 (18:43 +0100)]
Disable watch callbacks while running the driver probe callback.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 17:25:40 +0000 (18:25 +0100)]
Change xenstore-domain messaging protocol to match what we use
for other inter-domain comms (power-of-two-sized rings, and
free-running indexes). The interface is defined in the spirit of
the console protocol, so maybe some chance of merging them
together later?
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 17:18:43 +0000 (18:18 +0100)]
Fix xsls build dependency.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 16:04:11 +0000 (17:04 +0100)]
Add a option for enabling ne2000 NIC device model
Signed-off-by: Yan Li <yanx.li@intel.com>
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 16:01:38 +0000 (17:01 +0100)]
Refactor domain/vcpu allocation to be more separated.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 16:00:29 +0000 (17:00 +0100)]
Keir moved barriers,
Competence questions are raised:
Correctness withers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 15:42:35 +0000 (16:42 +0100)]
Fix error output to stderr in xc_linux_build.
Signed-off-by: Scott Parish <srparish@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 15:34:49 +0000 (16:34 +0100)]
New dom0_op to set max vcpus for a domain.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 15:15:02 +0000 (16:15 +0100)]
Fix 64-bit compile warnings in firmware.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 12:21:06 +0000 (13:21 +0100)]
Merged.
emellor@ewan [Wed, 12 Oct 2005 12:20:10 +0000 (13:20 +0100)]
Merged.
emellor@ewan [Wed, 12 Oct 2005 12:13:32 +0000 (13:13 +0100)]
Make the error reporting back to xm just a little bit less insane, and fix a
missing import inside blkif. Fix the command parsing for op_device_destroy and
op_device_configure -- the device IDs should be strings, to allow the user to
specify devices by name as well as number.
This is the second half to the fixes for bug #315.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 12:06:35 +0000 (13:06 +0100)]
merge
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 12:03:10 +0000 (13:03 +0100)]
Fix firmware build for cross-compilation.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 12:00:55 +0000 (13:00 +0100)]
Ignore any watches that fire for which we do not have a registration. This can
happen if there are watches in flight at the same time as a deregistration, and
also seems to happen spuriously on xend restart.
This fixes the Invalid token error that has been seen on xend restart.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 11:56:52 +0000 (12:56 +0100)]
Don't try and call DevController if we can't destroy a device ourselves,
because we are already inside the ValueError exception handler, so we know that
the give device identifier is not an integer, and DevController.destroyDevice
only accepts integers. Fixes bug #315.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 11:54:43 +0000 (12:54 +0100)]
Improve error message.
emellor@ewan [Wed, 12 Oct 2005 11:04:45 +0000 (12:04 +0100)]
Explicitly state which architectures are going to use /usr/lib64, to allow for
the fact that Itanium does not.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 11:03:03 +0000 (12:03 +0100)]
Fix the handling of EAGAIN from the transaction_end; we were failing to do any
work if the transaction caused a retry, because optind had been obliterated.
Achieve this by splitting the main body of the loop off to a separate function,
meaning that we get rid of the goto out at the same time.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 10:51:52 +0000 (11:51 +0100)]
Added missing __init__.py.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 10:47:16 +0000 (11:47 +0100)]
Fix vcpu-hotplug xenbus watch handler and setup.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 10:13:00 +0000 (11:13 +0100)]
Better cast for ptr->int in residerfs module.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 10:07:37 +0000 (11:07 +0100)]
Fix Xen public interfaces and the tools to consistently
use stdint-format bitsize types (uint32_t and friends).
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 09:11:35 +0000 (10:11 +0100)]
Fix deadlock in XendDomainInfo when a domain is cleaned up. We are renaming
the domain, to make it clear that it is a zombie, but this renaming cannot
check the uniqueness of the new name, because this causes a deadlock with
XendDomain. Instead, we allow the name to be non-unique for the case of
zombie domains.
Change the locking in waitForShutdown and state_set to be robust in the face of
exceptions.
Rename the STATE_VM_ constants to STATE_DOM_.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 09:08:01 +0000 (10:08 +0100)]
Change import that was confusing pylint (this is a pylint bug, I think).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@ewan [Wed, 12 Oct 2005 09:07:04 +0000 (10:07 +0100)]
Issue diagnostics if xm is being run as a non-root user. This used to happen,
but the triggering error has moved, so the diagnostics were broken.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:34:27 +0000 (09:34 +0100)]
Fix compilation problems with xenstore.
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:33:03 +0000 (09:33 +0100)]
This patch implements select() functionality on /dev/vtpm and fixes some
other problems.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:31:53 +0000 (09:31 +0100)]
Fix PAE overflow in xc_linux_build.
Signed-off-by: srparish@us.ibm.com
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:29:52 +0000 (09:29 +0100)]
Error print on err path.
Signed-off-by: srparish@us.ibm.com
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:28:12 +0000 (09:28 +0100)]
The NAT scripts currently work, but the changes below decrease user
error and allow the netmask to be passed in.
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 12 Oct 2005 08:27:28 +0000 (09:27 +0100)]
Hide the VMX cpu feature from unmodified Guests.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
djm@kirby.fc.hp.com [Tue, 11 Oct 2005 22:57:44 +0000 (16:57 -0600)]
Merged
djm@kirby.fc.hp.com [Tue, 11 Oct 2005 21:50:21 +0000 (15:50 -0600)]
Fixes for correct itir handling in vcpu_translate (broke simulator)